package cn.ljy.quicksnip.model.query;

import cn.ljy.quicksnip.model.QsProject;
import cn.ljy.quicksnip.model.QsTimeBlock;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

import java.math.BigDecimal;
import java.util.Date;

@ApiModel(value="时间块查询查询类")
@Data
@NoArgsConstructor
public class QsTimeBlockQuery extends QsTimeBlock {
    @ApiModelProperty(value = "创建时间起始范围", example = "2023-01-01 12:00:00")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createTimeQueryOfBegin;

    @ApiModelProperty(value = "创建时间截止范围", example = "2023-01-01 12:00:00")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createTimeQueryOfEnd;

    private BigDecimal minPrice;
    private BigDecimal maxPrice;
}
